home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / util / libs / graphics3d.lha / src / library / graphics3Df.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-17  |  4.1 KB  |  119 lines

  1. /*
  2. **      $VER: graphics3Df.h 10.01 (01.11.97)
  3. **
  4. **      Functions for graphics3D.library
  5. **
  6. **      (C) Copyright 97 Patrizio Biancalani
  7. **      All Rights Reserved.
  8. */
  9.  
  10. extern struct ambient3d *GD_display3d(REG(a0)struct Window *win,
  11.         REG(d0)long int x0,
  12.         REG(d1)long int y0,REG(d2)long int scrw, 
  13.         REG(d3)long int scrh,REG(d4)long int vdist);
  14.  
  15. extern void GD_switch_rp(REG(a0)struct ambient3d *in);
  16.  
  17. extern long int GD_clipbox(REG(a0)struct ambient3d *in,REG(d0)long int minx,
  18.              REG(d1)long int miny,REG(d2)long int dx,REG(d3)long int dy);
  19.  
  20. extern void GD_cls_b(REG(a0)struct ambient3d *in,REG(d0)long int x0,
  21.     REG(d1)long int y0,REG(d2)long int x1,REG(d3)long int y1);
  22.  
  23. extern void GD_over(REG(a0)struct ambient3d *in,REG(d0)long int mod);
  24.  
  25. extern void GD_close_display3d(REG(a0)struct ambient3d *in);
  26.  
  27. extern long int GD_changeviewmode(REG(a0)struct ambient3d *in,
  28.     REG(d0)long int modo,REG(d1)long int b_col);
  29.  
  30. extern long int GD_changeviewmodeobj(REG(a0)struct ambient3d *in,
  31.     REG(d0)long int modo);
  32.  
  33. extern void GD_touchpalette(REG(a0)struct ambient3d *in,REG(d0)long int fr,
  34.     REG(d1)long int lr,REG(a1)struct rgbtype *init_color,
  35.     REG(a2)struct rgbtype *last_color);
  36.  
  37. extern void GD_moveforward(REG(a0)struct ambient3d *in,REG(d0)long int dist);
  38.  
  39. extern void GD_viewangle(REG(a0)struct ambient3d *in,REG(d0)long int ax,
  40.     REG(d1)long int ay,REG(d2)long int az);
  41.  
  42. extern void GD_frustum(REG(a0)struct ambient3d *in,REG(d0)long int near,
  43.     REG(d1)long int far);
  44.  
  45. extern void GD_createlightsource(REG(a0)struct ambient3d *in,
  46.     REG(d0)long int x,REG(d1)long int y,REG(d2)long int z);
  47.  
  48. extern void GD_ambientlight(REG(a0)struct ambient3d *in,
  49.     REG(d0)long int inte);
  50.  
  51. extern void GD_positioncamera(REG(a0)struct ambient3d *in,REG(d0)long int x,
  52.     REG(d1)long int y,REG(d2)long int z);
  53.  
  54. extern void GD_aspectratio(REG(a0)struct ambient3d *in,
  55.     REG(d0)long int ratio);
  56.  
  57. extern void GD_clipmode(REG(a0)struct ambient3d *in,REG(d0)long int mode);
  58.  
  59. extern long int GD_newobj(REG(a0)struct ambient3d *in,
  60.     REG(a1)char *name,REG(d0)long int pol,REG(d1)long int vert); 
  61.  
  62. extern void GD_deleteobject(REG(a0)struct ambient3d *in);
  63.  
  64. extern long int GD_addobjvertex(REG(a0)struct ambient3d *in,
  65.     REG(d0)long int num,REG(d1)long int x,REG(d2)long int y,
  66.     REG(d3)long int z);
  67.  
  68. extern long int GD_addobjpoly(REG(a0)struct ambient3d *in, 
  69.     REG(d0)long int num,REG(d1)long int p1,REG(d2)long int p2,
  70.     REG(d3)long int p3,REG(d4)long int p4);
  71.  
  72. extern long int GD_cattpoly(REG(a0)struct ambient3d *in,
  73.     REG(d0)long int num,REG(d1)long int color,REG(d2)long int twoside);
  74.  
  75. extern long int GD_setobj(REG(a0)struct ambient3d *in,REG(d0)long int num);
  76.  
  77. extern long int GD_getobj(REG(a0)struct ambient3d *in);
  78.  
  79. extern void GD_translateobject(REG(a0)struct ambient3d *in,
  80.     REG(d0)long int dx,REG(d1)long int dy,REG(d2)long int dz);
  81.  
  82. extern void GD_positionobject(REG(a0)struct ambient3d *in,
  83.     REG(d0)long int x,REG(d1)long int y,REG(d2)long int z);
  84.  
  85. extern void GD_scaleobject(REG(a0)struct ambient3d *in,
  86.     REG(d0)long int xscale_fact,REG(d1)long int yscale_fact,
  87.     REG(d2)long int zscale_fact);
  88.  
  89. extern void GD_rotateobject(REG(a0)struct ambient3d *in,
  90.     REG(d0)long int angle_x,REG(d1)long int angle_y,
  91.     REG(d2)long int angle_z);
  92.  
  93. extern long int GD_pickobj(REG(a0)struct ambient3d *in,REG(a1)long int *np,
  94.     REG(d0)long int x,REG(d1)long int y);
  95.  
  96. extern void GD_rgb4(REG(a0)struct ambient3d *in,REG(d0)long int n,
  97.     REG(d1)long int red,REG(d2)long int green,REG(d3)long int blue); 
  98.  
  99. extern struct RastPort *GD_paintframe(REG(a0)struct ambient3d *in);
  100.  
  101. extern void GD_newview(REG(a0)struct ambient3d *in);
  102.  
  103. extern void GD_recalcobj( REG (a0)struct ambient3d *in);
  104.  
  105. extern long int GD_cascene( REG(a0)struct ambient3d *in,
  106.      REG(a1)struct tag3d *new);
  107.  
  108. extern long int GD_int2fix( REG(a0)long int *in, REG(a1)long int *out);
  109.  
  110. extern long int GD_fix2int( REG(a0)long int *in, REG(a1)long int *out);
  111.  
  112. extern long int GD_sfl2fix( REG(a0)float  *in, REG(a1)long int *out);
  113.  
  114. extern long int GD_fix2sfl( REG(a0)long int *in, REG(a1)float  *out);
  115.  
  116. extern long int GD_dfl2fix( REG(a0)double *in, REG(a1)long int *out);
  117.  
  118. extern long int GD_fix2dfl( REG(a0)long int *in, REG(a1)double *out);
  119.